package cn.sky.demo.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志记录
 *
 * @author shijun
 * @date 2024/07/14
 */
@Data
@ApiModel(value ="操作日志记录")
@TableName(value = "sys_oper_log")
public class SysOperLog implements Serializable{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "日志主键")
    private Long id;

     @ApiModelProperty(value ="模块标题")
    private String title;

     @ApiModelProperty(value ="业务类型（0其它 1新增 2修改 3删除）")
    private String businessType;

     @ApiModelProperty(value ="方法名称")
    private String method;

     @ApiModelProperty(value ="请求方式")
    private String requestMethod;

     @ApiModelProperty(value ="操作类别（0其它 1后台用户 2手机端用户）")
    private String operatorType;

     @ApiModelProperty(value ="操作人员")
    private String operName;

     @ApiModelProperty(value ="请求URL")
    private String operUrl;

     @ApiModelProperty(value ="主机地址")
    private String operIp;

     @ApiModelProperty(value ="请求参数")
    private String operParam;

     @ApiModelProperty(value ="返回参数")
    private String jsonResult;

     @ApiModelProperty(value ="操作状态（1正常 0异常）")
    private Integer status;

     @ApiModelProperty(value ="错误消息")
    private String errorMsg;

     @ApiModelProperty(value ="操作时间")
    private Date operTime;

     @ApiModelProperty(value ="执行时长")
    private long executeTime;

}
